﻿namespace IQIGame.Onigao.GamePlay
{
    /// <summary>
    /// 类名 : API - UIHeroList 界面
    /// 作者 : Canyon / 龚阳辉
    /// 日期 : 2024-05-27 11:18
    /// 功能 : 
    /// </summary>
    public static class APIUIHeroList
    {
        /// <summary>
        /// 获取页签文本内容
        /// </summary>
        /// <param name="tab"></param>
        /// <returns>页面名</returns>
        static public string GetTabName(int tab)
        {
            EM_HeroConst em = (EM_HeroConst)tab;
            switch (em)
            {
                case EM_HeroConst.All:
                    return "全部";
                case EM_HeroConst.CLASS_TANK:
                    return "坦克";
                case EM_HeroConst.CLASS_ATTACK:
                    return "攻击";
                case EM_HeroConst.CLASS_HEAL:
                    return "治疗";
            }
            return "";
        }

        static public string GetTabEnName(int tab)
        {
            EM_HeroConst em = (EM_HeroConst)tab;
            switch (em)
            {
                case EM_HeroConst.All:
                    return "all";
                case EM_HeroConst.CLASS_TANK:
                    return "tank";
                case EM_HeroConst.CLASS_ATTACK:
                    return "attack";
                case EM_HeroConst.CLASS_HEAL:
                    return "heal";
            }
            return "";
        }
    }
}
